package com.order.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.order.common.R;
import com.order.po.outbound;
import com.order.po.put_storage;
import com.order.service.outboundService;

@Controller
public class outboundController {
	 @Autowired
	  private outboundService outboundService;
	 
	 @RequestMapping({"/getAlloutbound"})
	   @ResponseBody
	   public R getAlloutbound()
	   {
		 R r = R.ok().put("data", this.outboundService.getAlloutbound());
	     return r;
	   }
	 
	 @RequestMapping({"/getoutboundbyid"})
	   @ResponseBody
	   public R getoutboundbyid(String parameter,String parameter1,String parameter2)
	   {
		 R r = R.ok().put("data", this.outboundService.getoutboundbyid(parameter,parameter1,parameter2));
	     return r;
	   }
	 
	 @RequestMapping({ "/insert_outbound" })
		@ResponseBody
		public void insert_outbound(outbound o) {
			this.outboundService.insert_outbound(o);
		 }
}
